/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.Date;
import java.util.SortedMap;
import java.util.TreeMap;
import utils.BaseModel;

/**
 *
 * @author jmoura
 */
public class Project extends BaseModel {

    private boolean active = false;
    private Date start;
    private SortedMap<Integer, ScheduleBaseline> scheduleBaselines = new TreeMap<>(); //version, baseline

    /**
     * @return the active
     */
    public boolean isActive() {
        return active;
    }

    /**
     * @param active the active to set
     */
    public void setActive(boolean active) {
        this.active = active;
    }

    /**
     * @return the start
     */
    public Date getStart() {
        return start;
    }

    /**
     * @param start the start to set
     */
    public void setStart(Date start) {
        this.start = start;
    }

    /**
     * @return the scheduleBaseline
     */
    public SortedMap<Integer, ScheduleBaseline> getScheduleBaselines() {
        return scheduleBaselines;
    }

    /**
     * @param scheduleBaseline the scheduleBaseline to set
     */
    public void addScheduleBaseline(ScheduleBaseline scheduleBaseline) {
        //version, baseline
        this.scheduleBaselines.put(scheduleBaseline.getVersion(), scheduleBaseline);
    }
}
